package homeword.traffic_light;

import java.util.concurrent.locks.ReentrantLock;

public class Client {
    public static void main(String[] args) {

        Repository repository = new Repository();

        Thread red = new Thread(new Red(repository), "红灯");
        Thread yellow = new Thread(new Yellow(repository), "黄灯");
        Thread green = new Thread(new Green(repository), "绿灯");

        red.start();
        yellow.start();
        green.start();
    }
}
